import qs from 'qs';
import auth from '@/utils/auth';
import ajax from '@/utils/ajax';

export default {
  actions: {
    createProductsClass({ commit }, data) {
      data.token = auth.getToken();

      return ajax.post('/products/class', qs.stringify(data));
    }
  }
};
